יחידה:תבנית מידע: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 67: | שורה 67: | ||
local function renderEditLinks() | local function renderEditLinks() | ||
local localEdit = mw.title.getCurrentTitle():canonicalUrl({action='edit',section='0'}) | local localEdit = mw.title.getCurrentTitle():canonicalUrl({action='edit',section='0'}) | ||
localEdit = '[[File:VisualEditor - Icon - Code.svg| | localEdit = '[[File:VisualEditor - Icon - Code.svg|20px|link='..localEdit..'|עריכת התבנית]]' -- link to edit template | ||
local wbEdit='' -- link to wikidata | local wbEdit='' -- link to wikidata | ||
if args.usingWikidata then | if args.usingWikidata then | ||
local entity = mw.wikibase.getEntityObject() | local entity = mw.wikibase.getEntityObject() | ||
wbEdit = '//www.wikidata.org/wiki/'..entity.id | wbEdit = '//www.wikidata.org/wiki/'..entity.id | ||
wbEdit = '[[File:VisualEditor - Icon - Alienextension.svg| | wbEdit = '[[File:VisualEditor - Icon - Alienextension.svg|20px|link='..wbEdit..'|עריכת מידע בוויקינתונים]]' | ||
end | end | ||
root:tag('tr') | root:tag('tr') | ||