Module:SB/doc: Difference between revisions

From Teopedia
(+footnote)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float: right; border: 1px solid black; padding: 0 5px; font-size: 80%;">[[Module:SB/doc|doc]]</div>
{{TOC right}}
{{TOC right}}
Lua functions for [[HPB-SB|HPB Scrapbooks]].
Lua functions for [[HPB-SB|HPB Scrapbooks]].
Line 5: Line 7:


=== item_id ===
=== item_id ===
Called from {{t|HPB-SB-item}} for setting semantic property {{p|HPB SB item ID}}.
<pre>
<pre>
{{#invoke: SB | item_id | volume=1 | page=17 | item=4 }}
{{#invoke: SB | item_id | volume=1 | page=17 | item=4 }}
Line 13: Line 17:


<pre>
<pre>
{{#invoke: footnote  
{{#invoke: SB | footnote  
  | title=
  | title=
  | author=
  | author=
Line 22: Line 26:
  | notes=
  | notes=
  | archivist_notes=
  | archivist_notes=
| language =
| translator =
}}
}}
</pre>
</pre>
Line 29: Line 35:
<pre>=p.item_id{args={["volume"]="1",["page"]="17.2",["item"]="3"}}</pre>
<pre>=p.item_id{args={["volume"]="1",["page"]="17.2",["item"]="3"}}</pre>


 
[[t-ru-lib:Module:SB]]
== Module code ==
== Module code ==

Latest revision as of 22:28, 12 June 2023


Lua functions for HPB Scrapbooks.

Functions

item_id

Called from {{HPB-SB-item}} for setting semantic property [[HPB SB item ID]].

{{#invoke: SB | item_id | volume=1 | page=17 | item=4 }}

footnote

Called from {{HPB-SB-item}}.

{{#invoke: SB | footnote 
 | title=
 | author=
 | author_signed=
 | type= 
 | source_title=
 | source_details=
 | notes=
 | archivist_notes=
 | language = 
 | translator = 
}}


Debug example

=p.item_id{args={["volume"]="1",["page"]="17.2",["item"]="3"}}

Module code