Difference between revisions of "Template:Mbabel"

From blackwiki
Jump to navigation Jump to search
imported>Pharos
(will start documentation)
imported>WOSlinker
(change font tags to span tags)
 
Line 1: Line 1:
 
{{#if:{{wikidata|title|{{{1}}}}}|
 
{{#if:{{wikidata|title|{{{1}}}}}|
 
[[{{wikidata|title|{{{1}}}}}]]|
 
[[{{wikidata|title|{{{1}}}}}]]|
<span class="noprint plainlinks">[{{fullurl:Draft:{{wikidata|label|{{{1}}}}} {{#switch: {{wikidata|property|{{{1}}}|P170}} | anonymous | = ({{wikidata|property|{{{1}}}|P195}}) | ({{wikidata|property|{{{1}}}|P170}}) }} |action=edit&preview=yes&redlink=1&editintro=Template:Mbabel/intro&preload=Template:Mbabel/MET&preloadparams%5b%5d={{{1}}} <font color="#C20">{{wikidata|label|{{{1}}}}}</font>]</span>}}}}<noinclude>
+
<span class="noprint plainlinks">[{{fullurl:Draft:{{wikidata|label|{{{1}}}}} {{#switch: {{wikidata|property|{{{1}}}|P170}} | anonymous | = ({{wikidata|property|{{{1}}}|P195}}) | ({{wikidata|property|{{{1}}}|P170}}) }} |action=edit&preview=yes&redlink=1&editintro=Template:Mbabel/intro&preload=Template:Mbabel/MET&preloadparams%5b%5d={{{1}}} <span style="color:#C20;">{{wikidata|label|{{{1}}}}}</span>]</span>}}}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
[[Category:Wikidata templates]]
 
[[Category:Wikidata templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:00, 10 October 2019

[[Template:Wikidata]]

Template documentation[view] [edit] [history] [purge]

Usage

See Wikipedia:Mbabel for more information and documentation.

This "Museum of Babel" template is for creating a draft article with an infobox and other material based on Wikidata, particularly intended for items in museum collections. It may be useful for {{Wikidata list}} tables utilized by in-person and online edit-a-thon campaigns. Having an appropriate skeleton draft text preloaded with an image, a full infobox, and basic text in the article body can ease the formatting roadblock of new page creation.

{{Mbabel
|1 = Wikidata id
}}

If the item already has an article on English Wikipedia, a link to that is displayed. If not, a red link to start a draft article is displayed, with a title disambiguated by the artist, or if there is none, by the collecting institution.

In the draft article, any time the formal parameter $1 appears in the text of page with text to be preloaded, it is replaced with the Wikidata id, and can be used to display particular properties, etc, through {{Wikidata}}. Usages of {{Wikidata}} will be substituted in the article body but not in the infobox.

This template is inspired by {{Preloaddraft}}, which does something analogous with article title, rather than Wikidata items.

Examples of use on {{Wikidata list}} tables: