Template:ConvoCite: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) added conversation number, better quote formatting |
m added auto translation for "and" |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>[[{{{hero1|}}}/Quotes#Conversations|{{{hero1|}}} | <includeonly>{{#if:{{{prefix|}}}|[[{{{hero1|}}}/Quotes{{If_lang}}#{{#invoke:Dictionary|translate|Conversations}}|{{#invoke:Dictionary|translate|Conversation}} {{{l1|{{{hero1|}}}}}} <span style="text-transform: lowercase">{{#invoke:Dictionary|translate|And}}</span> {{{l2|{{{hero2|}}}}}} {{#if: {{{number|}}}|{{{number|}}}}}]] {{#if: {{{hero_quote1|}}} | - {{HeroIcon|{{{hero_quote1|}}}|icon-only=true}} ''"{{{quote1}}}"''}} {{#if: {{{hero_quote2|}}} | - {{HeroIcon|{{{hero_quote2|}}}|icon-only=true}} ''"{{{quote2}}}"''}} {{#if: {{{hero_quote3|}}} | - {{HeroIcon|{{{hero_quote3|}}}|icon-only=true}} ''"{{{quote3}}}"''}}|[[{{{hero1|}}}/Quotes{{If_lang}}#{{#invoke:Dictionary|translate|Conversations}}|{{{l1|{{{hero1|}}}}}} <span style="text-transform: lowercase">{{#invoke:Dictionary|translate|And}}</span> {{{l2|{{{hero2|}}}}}} {{#invoke:Dictionary|translate|Conversation}} {{#if: {{{number|}}}|{{{number|}}}}}]] {{#if: {{{hero_quote1|}}} | - {{HeroIcon|{{{hero_quote1|}}}|icon-only=true}} ''"{{{quote1}}}"''}} {{#if: {{{hero_quote2|}}} | - {{HeroIcon|{{{hero_quote2|}}}|icon-only=true}} ''"{{{quote2}}}"''}} {{#if: {{{hero_quote3|}}} | - {{HeroIcon|{{{hero_quote3|}}}|icon-only=true}} ''"{{{quote3}}}"''}}}}</includeonly><noinclude>{{Documentation}}[[Category:Citation templates]]</noinclude> | ||
Latest revision as of 16:05, 17 February 2026
Usage
[edit source]This template can be used to reference conversations. It links to the conversation page of the first hero. Conversation number and quotations can be added.
{{ConvoCite|hero1=First hero|hero2=Second hero}}
Example usages
[edit source]Example:
{{ConvoCite|hero1=Abrams|hero2=Dynamo}}
Result:
Abrams And Dynamo Conversation
With number:
{{ConvoCite|hero1=Abrams|hero2=Dynamo|number=2}}
Result:
Abrams And Dynamo Conversation 2
With one quotation:
{{ConvoCite|hero1=Abrams|hero2=Dynamo|number=2|hero_quote1=Abrams|quote1=Stay close to me Professor, I'll keep you safe.}}
Result:
Abrams And Dynamo Conversation 2 - "Stay close to me Professor, I'll keep you safe."
With two quotations:
{{ConvoCite|hero1=Abrams|hero2=Dynamo|number=2|hero_quote1=Abrams|quote1=Stay close to me Professor, I'll keep you safe.|hero_quote2=Dynamo|quote2=Detective, I was about to say the same thing to you.}}
Result:
Abrams And Dynamo Conversation 2 - "Stay close to me Professor, I'll keep you safe." - "Detective, I was about to say the same thing to you."
With alternative name
{{ConvoCite|hero1=Abrams|hero2=Dynamo|l1=Atlas|l2=Prof|number=2|hero_quote1=Abrams|quote1=Stay close to me Professor, I'll keep you safe.|hero_quote2=Dynamo|quote2=Detective, I was about to say the same thing to you.}}
Result:
Atlas And Prof Conversation 2 - "Stay close to me Professor, I'll keep you safe." - "Detective, I was about to say the same thing to you."
With prefix (puts word "Conversation" at the start of the sentence which is mostly used for localization)
{{ConvoCite|hero1=Abrams|hero2=Dynamo|prefix=1|number=2|hero_quote1=Abrams|quote1=Stay close to me Professor, I'll keep you safe.|hero_quote2=Dynamo|quote2=Detective, I was about to say the same thing to you.}}
Result:
Conversation Abrams And Dynamo 2 - "Stay close to me Professor, I'll keep you safe." - "Detective, I was about to say the same thing to you."
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| hero1 | hero1 | Name of the first hero and the one it will be linked to | String | required |
| hero2 | hero2 | Name of the second hero | String | required |
| number | number | Number of the conversation (1-3) | String | optional |
| hero_quote1 | hero_quote1 | Hero that the quote belongs to | String | optional |
| quote1 | quote1 | Transcription of the relevant quote | String | optional |
| hero_quote2 | hero_quote2 | Hero that the 2nd quote belongs to | String | optional |
| quote2 | quote2 | Transcription of the 2nd relevant quote | String | optional |
| hero_quote3 | hero_quote3 | Hero that the 3rd quote belongs to | String | optional |
| quote3 | quote3 | Transcription of the 3rd relevant quote | String | optional |
| prefix | prefix | Put word Conversation at the start of the sentence | Boolean | optional |
| l1 | l1 | Alternative name of the first hero | String | optional |
| l2 | l2 | Alternative name of the second hero | String | optional |