User Tools

Site Tools


tag

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tag [2014/03/22 22:55]
l
tag [2017/10/09 20:39] (current)
Line 1: Line 1:
 +<- [[syntax|Formatting Passages]] --------- [[story_format|About Story Formats]]->​
 +
 ===== Tags ===== ===== Tags =====
  
 Sometimes, it can be useful to add information about a [[passage]] that isn't visible to readers. **Tags** are a way to do this -- they function as labels stuck on the side of a passage, visible to you while you are writing your story, but they cannot be seen in the published version of your story. Sometimes, it can be useful to add information about a [[passage]] that isn't visible to readers. **Tags** are a way to do this -- they function as labels stuck on the side of a passage, visible to you while you are writing your story, but they cannot be seen in the published version of your story.
 +
 +A tag can be any series of letters, numbers, or punctuation without spaces. You can assign as many tags as you like to a passage, as well.
  
 ==== Special tags ==== ==== Special tags ====
-There are some tags that have special meaning to Twine, and change how your story behaves or appears to your readers. These special tags are described below. You are also free to assign tags to your passages if they help you keep organized. A tag can be any series of letters, numbers, or punctuation without spaces. You can assign as many tags as you like to a passage, as well+There are some tags that have special meaning to Twine, and change how your story behaves or appears to your readers. These special tags are described below. ​
  
 ^ Special tag ^ Meaning ^ ^ Special tag ^ Meaning ^
 | annotation | An [[annotation]] | | annotation | An [[annotation]] |
 | stylesheet | A CSS [[stylesheet]]. Additional tags (excluding ''​transition''​) can be applied to restrict this stylesheet to specific passages. | | stylesheet | A CSS [[stylesheet]]. Additional tags (excluding ''​transition''​) can be applied to restrict this stylesheet to specific passages. |
-| script | A Javascript [[script]] that will be run before the story starts. |+| transition | Signifies that the [[stylesheet]] defines a CSS transition. Should only appear alongside the ''​stylesheet''​ tag. Has no particular meaning when applied to an ordinary passage. | 
 +| script | A Javascript [[script]] that will be run before the story starts. Used primarily to install custom scripts or macros.|
 | bookmark | A passage that will appear in [[about_story_formats|Sugarcane]]'​s Rewind menu| | bookmark | A passage that will appear in [[about_story_formats|Sugarcane]]'​s Rewind menu|
-| transition | Signifies that the [[stylesheet]] defines a CSS transition. Should only appear alongside the ''​stylesheet''​ tag. | 
 | nobr | Causes all of the line breaks in the passage to be removed, as if the entire passage was contained in a [[<<​nobr>>​]] macro. Useful if you use a lot of macros. | | nobr | Causes all of the line breaks in the passage to be removed, as if the entire passage was contained in a [[<<​nobr>>​]] macro. Useful if you use a lot of macros. |
 | Twine.private | A passage which will not be included at all in the compiled HTML file | | Twine.private | A passage which will not be included at all in the compiled HTML file |
 +| startup | Signifies that the passage can be used to initialize variables. Currently a feature only on [[about_story_formats|Harlowe]]|
  
 +<- [[syntax|Formatting Passages]] --------- [[story_format|About Story Formats]]->​
tag.1395543359.txt.gz · Last modified: 2017/10/09 20:38 (external edit)