Template:SMWQ: Difference between revisions
WikiSpooks>Robin BLUE for source_title =link |
m Plain formatting, no semantic markup |
||
| Line 25: | Line 25: | ||
|Has superobject={{FULLPAGENAME}} | |Has superobject={{FULLPAGENAME}} | ||
|Has objectClass=Quotation | |Has objectClass=Quotation | ||
|Has author={{#ifeq: | |Has author={{#ifeq: |Person|{{FULLPAGENAME}},}}{{#if: {{{authors|}}}|{{{authors|}}}|{{#if: }}}}|+sep=, | ||
|Has text={{#if: {{{font}}}|<font face="{{{font}}}">}}{{#ifeq: {{{quote_marks}}}|0||“}}{{{text|}}}{{#ifeq: {{{quote_marks}}}|0||”}} | |Has text={{#if: {{{font}}}|<font face="{{{font}}}">}}{{#ifeq: {{{quote_marks}}}|0||“}}{{{text|}}}{{#ifeq: {{{quote_marks}}}|0||”}} | ||
|Is about={{#ifeq: | |Is about={{#ifeq: |Person||{{FULLPAGENAME}},}}{{{subjects|}}}|+sep=, | ||
|Has wikipediaPage={{{wikipedia|}}} | |Has wikipediaPage={{{wikipedia|}}} | ||
|Has location={{{location|}}}|+sep=, | |Has location={{{location|}}}|+sep=, | ||
| Line 43: | Line 43: | ||
| inline_bold ={{#if: {{{font}}}|<font face="{{{font}}}">}}{{#ifeq: {{{quote_marks}}}|0||“}}'''{{{text|}}}'''{{#ifeq: {{{quote_marks}}}|0||”}}{{#if: {{{font}}}|</font>}}{{MakeRef|ref_name={{{ref_name|}}}|source_title={{{source_title|}}}|source_name={{{source_name|}}}|source_URL={{{source_URL|}}}|source_details={{{source_details|}}}{{#if: {{{date|}}}|, {{{date|}}}}}}} | | inline_bold ={{#if: {{{font}}}|<font face="{{{font}}}">}}{{#ifeq: {{{quote_marks}}}|0||“}}'''{{{text|}}}'''{{#ifeq: {{{quote_marks}}}|0||”}}{{#if: {{{font}}}|</font>}}{{MakeRef|ref_name={{{ref_name|}}}|source_title={{{source_title|}}}|source_name={{{source_name|}}}|source_URL={{{source_URL|}}}|source_details={{{source_details|}}}{{#if: {{{date|}}}|, {{{date|}}}}}}} | ||
| inline_italics ={{#if: {{{font}}}|<font face="{{{font}}}">}}{{#ifeq: {{{quote_marks}}}|0||“}}''{{{text|}}}''{{#ifeq: {{{quote_marks}}}|0||”}}{{#if: {{{font}}}|</font>}}{{MakeRef|ref_name={{{ref_name|}}}|source_title={{{source_title|}}}|source_name={{{source_name|}}}|source_URL={{{source_URL|}}}|source_details={{{source_details|}}}{{#if: {{{date|}}}|, {{{date|}}}}}}} | | inline_italics ={{#if: {{{font}}}|<font face="{{{font}}}">}}{{#ifeq: {{{quote_marks}}}|0||“}}''{{{text|}}}''{{#ifeq: {{{quote_marks}}}|0||”}}{{#if: {{{font}}}|</font>}}{{MakeRef|ref_name={{{ref_name|}}}|source_title={{{source_title|}}}|source_name={{{source_name|}}}|source_URL={{{source_URL|}}}|source_details={{{source_details|}}}{{#if: {{{date|}}}|, {{{date|}}}}}}} | ||
| #default = {{QB|<big>{{#if: {{{font}}}|<font face="{{{font}}}">}}{{#ifeq: {{{quote_marks}}}|0||“}}{{{text|}}}{{#ifeq: {{{quote_marks}}}|0||”}}{{#if: {{{font}}}|</font>}}</big/><br/>''{{ArrayMapListLink|{{#if: {{{authors|}}}|{{{authors}}}|{{#ifeq: | | #default = {{QB|<big>{{#if: {{{font}}}|<font face="{{{font}}}">}}{{#ifeq: {{{quote_marks}}}|0||“}}{{{text|}}}{{#ifeq: {{{quote_marks}}}|0||”}}{{#if: {{{font}}}|</font>}}</big/><br/>''{{ArrayMapListLink|{{#if: {{{authors|}}}|{{{authors}}}|{{#ifeq: |Person|{{FULLPAGENAME}},}}}}}}{{#if: {{{date|}}}| ({{{date|}}}) }}'' {{{source_title|}}}{{MakeRef|ref_name={{{ref_name|}}}|source_name={{{source_name|}}}|source_URL={{{source_URL|}}}|source_details={{{source_details|}}}}} {{#if: {{{location|}}}| ({{{location|}}})}}{{#if: {{{wikipedia|}}}| [{{{wikipedia}}} {{{Wikipedia|}}}]}}{{#if: {{{note|}}}|<br/>{{{note}}}}}{{ReportEmphasis|{{{eio|}}}}}|{{RED|Error: text parameter not specified!}}}}}}}}</includeonly> | ||
Latest revision as of 22:35, 24 September 2026
This template is for quotations. An example of its usage is at Quotation#Template:SMWQ.
It marks them up, semantically as well as physically. For simple formatting, you may use Template:QB, but for quotations, this template is recommended.
Blue parameters are for a single Wikispooks page name (If no suitable page exists, then pick a title for a future page)
Brown parameters are for numbers
Green parameters are for comma-separated lists of page names (Or planned page names).
Navy parameters are for dates
Orange parameters are for booleans. (Usually, either "Yes" or just leave blank).
Purple parameters are URLs.
Violet parameters are slash-separated lists.
Pink parameters are for coordinates.
Crossed out parameterswere formerly available, but have been upgraded. Some may still work, but do not use these.
It takes the following parameters: <poem></poem>