Extension:PlushieHorse
From Plushie.Horse
An extension written by Corpulent Brony to provide customized formatting and features for this wiki. Source code is available on GitHub.
- Parser functions
{{#first_rev: page name|property}}
- Returns the requested property for the first revision of the given page
page name
is the name of the pageproperty
can be:original author
is the user name of the first authorpublished date
is the ISO 8601 formatted timestamp of the page's creation date
{{#image_info: file name|property}}
- Returns the requested property for the given image file
file name
is the file title with theFile:
prefixproperty
can be:
{{#plush_pic: }}
- Displays a random plush related image from Derpibooru; can only be used on the Main Page
{{#plushmancer_list: table ID|table filter row ID}}
- Applies some formatting to the Plushmancer List table and adds filter menus and sorters to specific columns in that table. To mark a column as being filterable, apply the
data-filter
attribute to the relatedth
element. To mark a column as being sortable, apply thedata-sort
attribute to the relatedth
element
table ID
is theid
attribute of thetable
element to be modifiedtable filter row ID
is theid
attribute of thetr
element where the filter and sorter widgets will be added
{{#randomly_do: text|probability}}
- Will return the specified
text
with the givenprobability
. Note that in order to use this as you probably want to, the page cannot be cached in the parser (you will want to use the__NOCACHE__
magic word)
text
is the text that might be returnedprobability
(optional) is a number between 0 and 1 specifying the chances oftext
being returned. Aprobability
value of 0 will never happen and aprobability
value of 1 will always happen. By default,probability
is set at0.5
{{#script_ld_json: json-ld}}
- Creates a
script
element in the rendered page's header section that defines schema details for the page
{{#set_body_itemtype: itemtype}}
- Turns on the
itemscope
attribute and sets theitemtype
attribute for the current page'sbody
element. Useful for marking up a page with schema microdata.
itemtype
is the URL of the vocabulary for the defined data structure; see the list of schemas