Vorlage:Comment: Unterschied zwischen den Versionen
Aus Haus Kormin
Luhan (Diskussion | Beiträge) K 1 Version importiert: Import |
Luhan (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
<div style="border-left:3px solid #cdcfff; background:ghostwhite; font-family: Tahoma; font-size:13pt; margin-left:15px; margin-right:15px; display:grid; grid-template-columns: 50px auto; grid-gap: 10px;"> | <noinclude> | ||
<div style="grid-column: 1 / span 1; grid-row: 1 / span | [[Kategorie:Vorlage]] | ||
<div style="grid-column: 2 / span 1; grid-row: 1 / span 1; margin-top: | == Version == | ||
Version 1.0 | |||
== Purpose == | |||
The template "Comment" creates and stores any kind of opinion or idea from something/someone about something/someone. The information can be queried and used somewhere else. | |||
A "comment" means here: Create some "content" and link it to a "source" and a "target". Source and Target may be anything: A person, a town, a guild, a concept like "Magie" or anything else someone could have an opinion to. | |||
The usage of the template "comment" allow to reuse this content on different location: A person which makes a comment about a spell could embed this comment not only on his page, but also on the spells page. Or somewhere else. | |||
== Parameters == | |||
<pre> | |||
TARGET = <target> # the target of a comment, default: current page | |||
SOURCE = <source> # the source of a comment, default: current page | |||
CONTENT = <text> # the content of the coment | |||
</pre> | |||
== Examples == | |||
Format the comment just like the box. | |||
'''Code''': | |||
<pre> | |||
{{Comment|TARGET=Hans Wurst|CONTENT=This is my comment}} | |||
</pre> | |||
'''Result''': | |||
{{Box|TITLE=Hans Wurst|CONTENT=This is my comment}} | |||
---- | |||
</noinclude><includeonly><div style="display:none;"> | |||
{{#vardefine:SOURCE|{{{SOURCE|{{PAGENAME}}}}}}} | |||
{{#vardefine:TARGET|{{{TARGET|{{PAGENAME}}}}}}} | |||
{{#vardefine:CONTENT|{{{CONTENT|dieser Kommentar hat noch keinen Inhalt}}}}} | |||
{{#vardefine:TITLE|{{{TITLE|}}}}} | |||
{{#cargo_store:_table=COMMENT | |||
|SOURCE={{#var:SOURCE}} | |||
|TARGET={{#var:TARGET}} | |||
|CONTENT={{#var:CONTENT}} | |||
|TITLE={{#var:TITLE}} | |||
}} | |||
</div><div style="border-left:3px solid #cdcfff; background:ghostwhite; font-family: Tahoma; font-size:13pt; margin-left:15px; margin-right:15px; margin-bottom:10px; display:grid; grid-template-columns: 50px auto; grid-gap: 10px;"> | |||
<div style="grid-column: 1 / span 1; grid-row: 1 / span 2; font-size:50pt;margin-left:10px;">❝</div> | |||
<div style="grid-column: 2 / span 1; grid-row: 1 / span 1; margin-top:10px; margin-right:30px;">{{{CONTENT|}}}</div> | |||
<div style="grid-column: 2 / span 1; grid-row: 2 / span 1; margin-bottom:15px; font-size:14pt;"><ul><li>{{#var:SOURCE}} über {{#var:TARGET}}</li></ul></div> | |||
</div> | </div> | ||
Aktuelle Version vom 9. Januar 2026, 16:57 Uhr
Version
Version 1.0
Purpose
The template "Comment" creates and stores any kind of opinion or idea from something/someone about something/someone. The information can be queried and used somewhere else.
A "comment" means here: Create some "content" and link it to a "source" and a "target". Source and Target may be anything: A person, a town, a guild, a concept like "Magie" or anything else someone could have an opinion to.
The usage of the template "comment" allow to reuse this content on different location: A person which makes a comment about a spell could embed this comment not only on his page, but also on the spells page. Or somewhere else.
Parameters
TARGET = <target> # the target of a comment, default: current page SOURCE = <source> # the source of a comment, default: current page CONTENT = <text> # the content of the coment
Examples
Format the comment just like the box.
Code:
{{Comment|TARGET=Hans Wurst|CONTENT=This is my comment}}
Result:
Hans Wurst
This is my comment