User:Shushugah/documentation

Personal notes on useful templates and examples

Help:A_quick_guide_to_templates functions that generate wiki markdown content. By default, templates are transclusive so you'll see the template used rather than the compiled text. It has syntax of. To use it with substitution (i.e. permanently create text at publish time, such as . A real example would be   which can be found on Template:Uw-plagiarism. A common example would be signing posts with  . Templates are platform specific, and can accept arguments. Templates can be nested.

Markup and compiled result
This substituted Mra code  produces what you see in immediate section below.

Interlanguage Links
English wikilink with German and Hebrew interlanguage links in this

Nested infoboxes
Note the param module, and embed=yes. Used in this

Using Wikidata
Wikidata is exciting, because it has potential to replace or compliment the manual updating of infoboxes with structured data. As a live demo, I emptied out most of the attributes below, such as birth and death dates. Note the image changed too. As off this publication, the death_dates were not sourced on wikidata, so they do not appear here. For non biography (or no BLP?), you can use onlysourced=false param, to include everything. You can whitelist or blacklist specific params if needed.

The documentation for Template:Infobox_person/Wikidata/sandbox was incomplete and confusing. So far I understand that the params qid and fetchwikidata are required. Embedded Wikidatas is my next challenge to figure out.

Template:Coord
A convenient javascript function to extract coordinates from console of a Google maps web page in nearly any browser for the Coordinate values in the Infobox;

Gadgets and tools

 * Trying to update publications with a wikidata author item? Use https://author-disambiguator.toolforge.org/ which I made extensive use of in Paul Brombacher's dozens of publications.